package com.shunya.diskorganizer.tinytypes;

public class Owner {
    private final String ownerName;

    public Owner(String ownerName) {
        this.ownerName = ownerName;
    }

    public String getOwnerName() {
        return ownerName;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        Owner owner = (Owner) o;

        if (ownerName != null ? !ownerName.equals(owner.ownerName) : owner.ownerName != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        return ownerName != null ? ownerName.hashCode() : 0;
    }

    @Override
    public String toString() {
        return ownerName;
    }
}
